package com.cn.wanxi.service;

import com.cn.wanxi.dao.CompanyDao;
import com.cn.wanxi.model.CompanyModel;

public class CompanyService {
    /**
     * 得到公司对象
     *
     * @return
     */
    public CompanyModel getCompapnyModel() {
        CompanyModel companyModel = new CompanyModel();
        CompanyDao companyDao = new CompanyDao();
        companyModel.setLogo(companyDao.LOGO);
        companyModel.setPhone(CompanyDao.phone);
        companyModel.setNet(CompanyDao.net);
        companyModel.setEmail(CompanyDao.email);
        companyModel.setLinePhone(CompanyDao.linePhone);
        companyModel.setAddress(CompanyDao.address);
        companyModel.setVersion(CompanyDao.version);
        return companyModel;
    }
}
